// 集中管理图标，避免重复导入和命名冲突
import { library } from "@fortawesome/fontawesome-svg-core";
import { faUser, faXmark, faSpinner } from "@fortawesome/free-solid-svg-icons";

// 方案1：手动添加图标到库
library.add(faUser, faXmark, faSpinner);

// 方案2：自动加载 @fortawesome/free-solid-svg-icons中的所有图标
// import * as solidIcons from '@fortawesome/free-solid-svg-icons';

// const solidIconsList = Object.values(solidIcons)
//   .filter(icon => icon.iconName);

// library.add(...solidIconsList);

// 导出图标名称常量（避免硬编码）
export const ICONS = {
  USER: ["fas", "user"],
  CLOSE: ["fas", "xmark"],
  SPINNER: ["fas", "spinner"],
};
